.class public Lcom/instagram/android/d/a/a;
.super Ljava/lang/Object;
.source "ApiHttpClient.java"


# static fields
.field private static a:Lcom/instagram/android/d/a/a;


# instance fields
.field private final b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

.field private c:Ljava/lang/String;


# direct methods
.method private constructor <init>(Lcom/instagram/service/PersistentCookieStore;Lch/boye/httpclientandroidlib/HttpHost;)V
    .locals 6
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 80
    new-instance v0, Lch/boye/httpclientandroidlib/params/BasicHttpParams;

    invoke-direct {v0}, Lch/boye/httpclientandroidlib/params/BasicHttpParams;-><init>()V

    .line 82
    const/4 v1, 0x1

    invoke-static {v0, v1}, Lch/boye/httpclientandroidlib/params/HttpConnectionParams;->setTcpNoDelay(Lch/boye/httpclientandroidlib/params/HttpParams;Z)V

    .line 83
    const/16 v1, 0x2710

    invoke-static {v0, v1}, Lch/boye/httpclientandroidlib/params/HttpConnectionParams;->setConnectionTimeout(Lch/boye/httpclientandroidlib/params/HttpParams;I)V

    .line 84
    const/16 v1, 0x7530

    invoke-static {v0, v1}, Lch/boye/httpclientandroidlib/params/HttpConnectionParams;->setSoTimeout(Lch/boye/httpclientandroidlib/params/HttpParams;I)V

    .line 86
    sget-object v1, Lch/boye/httpclientandroidlib/HttpVersion;->HTTP_1_1:Lch/boye/httpclientandroidlib/HttpVersion;

    invoke-static {v0, v1}, Lch/boye/httpclientandroidlib/params/HttpProtocolParams;->setVersion(Lch/boye/httpclientandroidlib/params/HttpParams;Lch/boye/httpclientandroidlib/ProtocolVersion;)V

    .line 88
    invoke-static {}, Lcom/instagram/android/d/h/a;->a()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lch/boye/httpclientandroidlib/params/HttpProtocolParams;->setUserAgent(Lch/boye/httpclientandroidlib/params/HttpParams;Ljava/lang/String;)V

    .line 90
    new-instance v1, Lch/boye/httpclientandroidlib/conn/scheme/SchemeRegistry;

    invoke-direct {v1}, Lch/boye/httpclientandroidlib/conn/scheme/SchemeRegistry;-><init>()V

    .line 92
    new-instance v2, Lch/boye/httpclientandroidlib/conn/scheme/Scheme;

    const-string v3, "http"

    const/16 v4, 0x50

    invoke-static {}, Lch/boye/httpclientandroidlib/conn/scheme/PlainSocketFactory;->getSocketFactory()Lch/boye/httpclientandroidlib/conn/scheme/PlainSocketFactory;

    move-result-object v5

    invoke-direct {v2, v3, v4, v5}, Lch/boye/httpclientandroidlib/conn/scheme/Scheme;-><init>(Ljava/lang/String;ILch/boye/httpclientandroidlib/conn/scheme/SchemeSocketFactory;)V

    invoke-virtual {v1, v2}, Lch/boye/httpclientandroidlib/conn/scheme/SchemeRegistry;->register(Lch/boye/httpclientandroidlib/conn/scheme/Scheme;)Lch/boye/httpclientandroidlib/conn/scheme/Scheme;

    .line 93
    new-instance v2, Lch/boye/httpclientandroidlib/conn/scheme/Scheme;

    const-string v3, "https"

    const/16 v4, 0x1bb

    invoke-static {}, Lch/boye/httpclientandroidlib/conn/ssl/SSLSocketFactory;->getSocketFactory()Lch/boye/httpclientandroidlib/conn/ssl/SSLSocketFactory;

    move-result-object v5

    invoke-direct {v2, v3, v4, v5}, Lch/boye/httpclientandroidlib/conn/scheme/Scheme;-><init>(Ljava/lang/String;ILch/boye/httpclientandroidlib/conn/scheme/SchemeSocketFactory;)V

    invoke-virtual {v1, v2}, Lch/boye/httpclientandroidlib/conn/scheme/SchemeRegistry;->register(Lch/boye/httpclientandroidlib/conn/scheme/Scheme;)Lch/boye/httpclientandroidlib/conn/scheme/Scheme;

    .line 95
    new-instance v2, Lch/boye/httpclientandroidlib/impl/conn/tsccm/ThreadSafeClientConnManager;

    invoke-direct {v2, v1}, Lch/boye/httpclientandroidlib/impl/conn/tsccm/ThreadSafeClientConnManager;-><init>(Lch/boye/httpclientandroidlib/conn/scheme/SchemeRegistry;)V

    .line 96
    const/16 v1, 0x14

    invoke-virtual {v2, v1}, Lch/boye/httpclientandroidlib/impl/conn/tsccm/ThreadSafeClientConnManager;->setDefaultMaxPerRoute(I)V

    .line 98
    new-instance v1, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    invoke-direct {v1, v2, v0}, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;-><init>(Lch/boye/httpclientandroidlib/conn/ClientConnectionManager;Lch/boye/httpclientandroidlib/params/HttpParams;)V

    iput-object v1, p0, Lcom/instagram/android/d/a/a;->b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    .line 99
    iget-object v0, p0, Lcom/instagram/android/d/a/a;->b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    invoke-virtual {v0, p1}, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;->setCookieStore(Lch/boye/httpclientandroidlib/client/CookieStore;)V

    .line 101
    new-instance v0, Lcom/instagram/android/d/a/b;

    invoke-direct {v0, p0}, Lcom/instagram/android/d/a/b;-><init>(Lcom/instagram/android/d/a/a;)V

    .line 113
    iget-object v1, p0, Lcom/instagram/android/d/a/a;->b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    invoke-virtual {v1, v0}, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;->addRequestInterceptor(Lch/boye/httpclientandroidlib/HttpRequestInterceptor;)V

    .line 116
    invoke-static {}, Lcom/instagram/i/a;->d()Z

    move-result v0

    if-nez v0, :cond_0

    .line 117
    iget-object v0, p0, Lcom/instagram/android/d/a/a;->b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    new-instance v1, Lcom/instagram/android/d/a/d;

    invoke-direct {v1}, Lcom/instagram/android/d/a/d;-><init>()V

    invoke-virtual {v0, v1}, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;->addRequestInterceptor(Lch/boye/httpclientandroidlib/HttpRequestInterceptor;)V

    .line 120
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/d/a/a;->b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    new-instance v1, Lcom/instagram/android/d/a/c;

    invoke-direct {v1, p0}, Lcom/instagram/android/d/a/c;-><init>(Lcom/instagram/android/d/a/a;)V

    invoke-virtual {v0, v1}, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;->addResponseInterceptor(Lch/boye/httpclientandroidlib/HttpResponseInterceptor;)V

    .line 140
    if-eqz p2, :cond_1

    .line 141
    iget-object v0, p0, Lcom/instagram/android/d/a/a;->b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    invoke-virtual {v0}, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;->getParams()Lch/boye/httpclientandroidlib/params/HttpParams;

    move-result-object v0

    const-string v1, "http.route.default-proxy"

    invoke-interface {v0, v1, p2}, Lch/boye/httpclientandroidlib/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lch/boye/httpclientandroidlib/params/HttpParams;

    .line 143
    :cond_1
    return-void
.end method

.method private static a(Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/HttpEntity;
    .locals 1
    .parameter

    .prologue
    .line 325
    const/4 v0, 0x0

    .line 327
    if-eqz p0, :cond_0

    .line 328
    invoke-virtual {p0}, Lcom/instagram/android/d/b/c;->c()Lch/boye/httpclientandroidlib/HttpEntity;

    move-result-object v0

    .line 331
    :cond_0
    return-object v0
.end method

.method private static a(Lch/boye/httpclientandroidlib/client/methods/HttpEntityEnclosingRequestBase;Lch/boye/httpclientandroidlib/HttpEntity;)Lch/boye/httpclientandroidlib/client/methods/HttpEntityEnclosingRequestBase;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 336
    if-eqz p1, :cond_0

    .line 337
    invoke-virtual {p0, p1}, Lch/boye/httpclientandroidlib/client/methods/HttpEntityEnclosingRequestBase;->setEntity(Lch/boye/httpclientandroidlib/HttpEntity;)V

    .line 340
    :cond_0
    return-object p0
.end method

.method public static a()Lcom/instagram/android/d/a/a;
    .locals 1

    .prologue
    .line 63
    sget-object v0, Lcom/instagram/android/d/a/a;->a:Lcom/instagram/android/d/a/a;

    if-nez v0, :cond_0

    .line 64
    invoke-static {}, Lcom/instagram/android/d/a/a;->b()V

    .line 66
    :cond_0
    sget-object v0, Lcom/instagram/android/d/a/a;->a:Lcom/instagram/android/d/a/a;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/d/a/a;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/instagram/android/d/a/a;->c()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private static a(Ljava/lang/StringBuilder;Ljava/util/Locale;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 392
    invoke-virtual {p1}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/d/a/a;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 393
    if-eqz v0, :cond_0

    .line 394
    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 395
    invoke-virtual {p1}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v0

    .line 396
    if-eqz v0, :cond_0

    .line 397
    const-string v1, "-"

    invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 398
    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 401
    :cond_0
    return-void
.end method

.method public static b(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/client/methods/HttpGet;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 185
    new-instance v0, Lch/boye/httpclientandroidlib/client/methods/HttpGet;

    invoke-static {p0, p1}, Lcom/instagram/android/d/a/a;->e(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lch/boye/httpclientandroidlib/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    return-object v0
.end method

.method private static b(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 374
    if-nez p0, :cond_1

    .line 375
    const/4 p0, 0x0

    .line 387
    :cond_0
    :goto_0
    return-object p0

    .line 377
    :cond_1
    const-string v0, "iw"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 379
    const-string p0, "he"

    goto :goto_0

    .line 380
    :cond_2
    const-string v0, "in"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 382
    const-string p0, "id"

    goto :goto_0

    .line 383
    :cond_3
    const-string v0, "ji"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 385
    const-string p0, "yi"

    goto :goto_0
.end method

.method private static declared-synchronized b()V
    .locals 4

    .prologue
    .line 70
    const-class v1, Lcom/instagram/android/d/a/a;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/instagram/android/d/a/a;->a:Lcom/instagram/android/d/a/a;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 77
    :goto_0
    monitor-exit v1

    return-void

    .line 72
    :cond_0
    :try_start_1
    const-string v0, "ApiHttpClient"

    const-string v2, "createInstance()"

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 75
    invoke-static {}, Lcom/instagram/i/a;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/instagram/android/d/a/e;->a()Lch/boye/httpclientandroidlib/HttpHost;

    move-result-object v0

    .line 76
    :goto_1
    new-instance v2, Lcom/instagram/android/d/a/a;

    invoke-static {}, Lcom/instagram/service/PersistentCookieStore;->a()Lcom/instagram/service/PersistentCookieStore;

    move-result-object v3

    invoke-direct {v2, v3, v0}, Lcom/instagram/android/d/a/a;-><init>(Lcom/instagram/service/PersistentCookieStore;Lch/boye/httpclientandroidlib/HttpHost;)V

    sput-object v2, Lcom/instagram/android/d/a/a;->a:Lcom/instagram/android/d/a/a;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 70
    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0

    .line 75
    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method

.method private c()Ljava/lang/String;
    .locals 3

    .prologue
    .line 352
    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v0

    .line 353
    iget-object v1, p0, Lcom/instagram/android/d/a/a;->c:Ljava/lang/String;

    if-nez v1, :cond_2

    .line 354
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 355
    invoke-static {v1, v0}, Lcom/instagram/android/d/a/a;->a(Ljava/lang/StringBuilder;Ljava/util/Locale;)V

    .line 357
    sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;

    invoke-virtual {v2, v0}, Ljava/util/Locale;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 358
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 359
    const-string v0, ", "

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 361
    :cond_0
    const-string v0, "en-US"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 364
    :cond_1
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/d/a/a;->c:Ljava/lang/String;

    .line 366
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/d/a/a;->c:Ljava/lang/String;

    return-object v0
.end method

.method public static d(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 247
    new-instance v0, Lch/boye/httpclientandroidlib/client/methods/HttpPost;

    invoke-direct {v0, p0}, Lch/boye/httpclientandroidlib/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Lcom/instagram/android/d/a/a;->a(Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/HttpEntity;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/d/a/a;->a(Lch/boye/httpclientandroidlib/client/methods/HttpEntityEnclosingRequestBase;Lch/boye/httpclientandroidlib/HttpEntity;)Lch/boye/httpclientandroidlib/client/methods/HttpEntityEnclosingRequestBase;

    move-result-object v0

    return-object v0
.end method

.method private static e(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Ljava/lang/String;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 316
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Lcom/instagram/android/d/b/c;->a()I

    move-result v0

    if-eqz v0, :cond_0

    .line 317
    invoke-virtual {p1}, Lcom/instagram/android/d/b/c;->e()Ljava/lang/String;

    move-result-object v0

    .line 318
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "?"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 321
    :cond_0
    return-object p0
.end method


# virtual methods
.method public a(Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 1
    .parameter

    .prologue
    .line 300
    iget-object v0, p0, Lcom/instagram/android/d/a/a;->b:Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;

    invoke-virtual {p0, v0, p1}, Lcom/instagram/android/d/a/a;->a(Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    return-object v0
.end method

.method public a(Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 306
    :try_start_0
    invoke-virtual {p1, p2}, Lch/boye/httpclientandroidlib/impl/client/DefaultHttpClient;->execute(Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;)Lch/boye/httpclientandroidlib/HttpResponse;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 311
    :goto_0
    return-object v0

    .line 307
    :catch_0
    move-exception v0

    .line 308
    invoke-interface {p2}, Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;->abort()V

    .line 310
    const-string v1, "ApiHttpClient"

    const-string v2, "Send request failed"

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 311
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public a(Lcom/instagram/android/d/c/g;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 1
    .parameter

    .prologue
    .line 146
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/instagram/android/d/a/a;->a(Lcom/instagram/android/d/c/g;Lcom/instagram/android/d/f/i;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    return-object v0
.end method

.method public a(Lcom/instagram/android/d/c/g;Lcom/instagram/android/d/f/i;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 151
    invoke-interface {p1}, Lcom/instagram/android/d/c/g;->a()Lcom/instagram/android/d/b/a;

    move-result-object v0

    .line 152
    sget-object v1, Lcom/instagram/android/d/b/a;->a:Lcom/instagram/android/d/b/a;

    if-ne v0, v1, :cond_0

    .line 153
    invoke-interface {p1}, Lcom/instagram/android/d/c/g;->b()Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1}, Lcom/instagram/android/d/c/g;->c()Lcom/instagram/android/d/b/c;

    move-result-object v1

    invoke-virtual {p0, v0, v1, p2}, Lcom/instagram/android/d/a/a;->a(Ljava/lang/String;Lcom/instagram/android/d/b/c;Lcom/instagram/android/d/f/i;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    .line 155
    :goto_0
    return-object v0

    .line 154
    :cond_0
    sget-object v1, Lcom/instagram/android/d/b/a;->b:Lcom/instagram/android/d/b/a;

    if-ne v0, v1, :cond_1

    .line 155
    invoke-interface {p1}, Lcom/instagram/android/d/c/g;->b()Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1}, Lcom/instagram/android/d/c/g;->c()Lcom/instagram/android/d/b/c;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/instagram/android/d/a/a;->a(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    goto :goto_0

    .line 158
    :cond_1
    new-instance v0, Ljava/lang/UnsupportedOperationException;

    invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V

    throw v0
.end method

.method public a(Ljava/lang/String;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 1
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 198
    invoke-virtual {p0, p1, v0, v0}, Lcom/instagram/android/d/a/a;->a(Ljava/lang/String;Lcom/instagram/android/d/b/c;Lcom/instagram/android/d/f/i;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    return-object v0
.end method

.method public a(Ljava/lang/String;Lch/boye/httpclientandroidlib/HttpEntity;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 239
    new-instance v0, Lch/boye/httpclientandroidlib/client/methods/HttpPost;

    invoke-direct {v0, p1}, Lch/boye/httpclientandroidlib/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    invoke-static {v0, p2}, Lcom/instagram/android/d/a/a;->a(Lch/boye/httpclientandroidlib/client/methods/HttpEntityEnclosingRequestBase;Lch/boye/httpclientandroidlib/HttpEntity;)Lch/boye/httpclientandroidlib/client/methods/HttpEntityEnclosingRequestBase;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/instagram/android/d/a/a;->a(Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    return-object v0
.end method

.method public a(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 181
    invoke-static {p1, p2}, Lcom/instagram/android/d/a/a;->b(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/client/methods/HttpGet;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/instagram/android/d/a/a;->a(Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    return-object v0
.end method

.method public a(Ljava/lang/String;Lcom/instagram/android/d/b/c;Lcom/instagram/android/d/f/i;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 217
    invoke-static {p2}, Lcom/instagram/android/d/a/a;->a(Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/HttpEntity;

    move-result-object v1

    .line 219
    instance-of v0, v1, Lcom/instagram/android/d/f/e;

    if-eqz v0, :cond_1

    if-eqz p3, :cond_1

    move-object v0, v1

    .line 220
    check-cast v0, Lcom/instagram/android/d/f/e;

    invoke-virtual {v0, p3}, Lcom/instagram/android/d/f/e;->a(Lcom/instagram/android/d/f/i;)V

    .line 225
    :cond_0
    invoke-virtual {p0, p1, v1}, Lcom/instagram/android/d/a/a;->a(Ljava/lang/String;Lch/boye/httpclientandroidlib/HttpEntity;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    return-object v0

    .line 221
    :cond_1
    if-eqz p3, :cond_0

    .line 222
    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Can only listen to multi-part uploads"

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public c(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/HttpResponse;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 209
    const/4 v0, 0x0

    invoke-virtual {p0, p1, p2, v0}, Lcom/instagram/android/d/a/a;->a(Ljava/lang/String;Lcom/instagram/android/d/b/c;Lcom/instagram/android/d/f/i;)Lch/boye/httpclientandroidlib/HttpResponse;

    move-result-object v0

    return-object v0
.end method
